package com.boot.unity.api.sql.upgrade.Runner;


import cn.hutool.json.JSONObject;
import com.boot.unity.api.modules.dgnsh.dao.GjjyqlxDao;
import com.boot.unity.api.modules.rzgjj.service.GjjService;
import com.boot.unity.api.sql.upgrade.dao.SqlDao;
import lombok.AllArgsConstructor;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@AllArgsConstructor
public class LoadTimeRunner {
//    private GjjyqlxDao dao;

    @Autowired
    private GjjService gjjService;

    /**
     * 更新执行视图
     */
//    @Scheduled(fixedRate = 24*60*60*1000)
    public void studentSyncSchedule(){
//        List<JSONObject> list = dao.getAll();
//        for(JSONObject json:list){
//            System.out.println("----------------::::"+json.toString());
//            System.out.println("DATA_DT::::"+json.getStr("DATA_DT"));
//        }


        System.out.println(gjjService.getAllData());

    }


}
